<%@ page language="java" 
	contentType="text/html; 
	charset=UTF-8"
	pageEncoding="UTF-8"
	%>
<!DOCTYPE html>
<html>
<head>
	<title>用户登录</title>
	<meta charset="UTF-8">
	<style>
		body {
			font-family: Arial, sans-serif;
			background-color: #f4f4f4;
		}
		form {
			background-color: #fff;
			padding: 20px;
			max-width: 500px;
			margin: 50px auto;
			border-radius: 5px;
			box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
		}
		h2 {
			text-align: center;
			margin-bottom: 20px;
		}
		input[type="text"], input[type="password"], select {
			display: block;
			width: 90%;
			padding: 10px;
			margin-bottom: 20px;
			border-radius: 5px;
			border: none;
			box-shadow: 0px 0px 9px rgba(0,0,0,0.1);
		}
		input[type="submit"],input[type="button"] {
			text-align: center;
			background-color: #4CAF50;
			color: #fff;
			padding: 10px 20px;
			border-radius: 5px;
			border: none;
			cursor: pointer;
		}
		input[type="submit"]:hover ,input[type="button"]:hover{
			background-color: #3e8e41;
		}
		
	</style>
</head>
<body>
	<form action="log_check.jsp" method="POST" onsubmit="return flase">
		<h2>登陆系统</h2>
        <label for="username">用户名:</label>
        <input type="text" id="username" name="username" required>
        <label for="password">密码:</label>
        <input type="password" id="password" name="password" required>
        
        <label for="user-type">用户类型:</label><select id="user-type" name="type">
            <option value="teacher">教师</option>
            <option value="student">学生</option>
        </select><br>
        <input type="submit" value="登录">
        <input type="button"   onclick="to_sign()" value="注册"/>
    </form>
    <script>
		function to_sign(){
			window.location="signin.jsp";
		}
	</script>
</body>
</html>